<body>

	<!-- TOP BAR -->
	<div id="top-bar">
		
		<div class="page-full-width cf">

			<ul id="nav" class="fl">
	
				<li class="v-sep"><?=anchor('home/index','Xem website',array('class'=>'round button dark ic-left-arrow image-left','target'=>'_blank'));?></li>
				<li class="v-sep"><a href="#" class="round button dark menu-user image-left">Chào <strong>admin</strong></a>
					<ul>						
						<li><a href="<?=site_url('admin/settings') ?>">Thông tin cửa hàng</a></li>
						<li><a href="<?=site_url('admin/password') ?>">Thay đổi mật khẩu</a></li>
						<li><?=anchor('admin/logout','Thoát') ?></li>
					</ul> 
				</li>
			
				<!--<li><a href="#" class="round button dark menu-email-special image-left">3 new messages</a></li>-->
				<li><?=anchor('admin/logout','Thoát',array('class'=>'round button dark menu-logoff image-left')); ?></li>
				
			</ul> <!-- end nav -->

					
			<form action="#" method="POST" id="search-form" class="fr">
				<fieldset>
					<input type="text" id="search-keyword" class="round button dark ic-search image-right" placeholder="Search..." />
					<input type="hidden" value="SUBMIT" />
				</fieldset>
			</form>

		</div> <!-- end full-width -->	
	
	</div> <!-- end top-bar -->
	
	
	
	<!-- HEADER -->
	<div id="header-with-tabs">
		
		<div class="page-full-width cf">
	
			<ul id="tabs" class="fl">
				<li><?=anchor('admin/index','Sản phẩm'); ?></li>
				<li><?=anchor('admin/categories','Danh mục'); ?></a></li>
				<li><?=anchor('admin/ads','Quảng cáo')?></li>
			</ul> <!-- end tabs -->
			
			<!-- Change this image to your own company's logo -->
			<!-- The logo will automatically be resized to 30px height. -->
			<a href="#" id="company-branding-small" class="fr"><img src="<?=base_url($template_path.'images/company-logo.png') ?>" alt="Blue Hosting" /></a>
			
		</div> <!-- end full-width -->	

	</div> <!-- end header -->
	
	
	
	<!-- MAIN CONTENT -->
	<div id="content">
		
		<div class="page-full-width cf">

			<div class="side-menu fl">
				
				<h3>Mục lục</h3>
				<ul>
					<li><?=anchor('admin/back','Quay trở lại trang trước'); ?></li>
				</ul>
				
			</div> <!-- end side-menu -->
			
			<div class="side-content fr">						
				
				<div class="content-module">
				
					<div class="content-module-heading cf">
					
						<h3 class="fl">Thông tin cửa hàng</h3>
						<span class="fr expand-collapse-text">Thu nhỏ</span>
						<span class="fr expand-collapse-text initial-expand">Mở rộng</span>
					
					</div> <!-- end content-module-heading -->
					
					
					<div class="content-module-main cf">
				
						<div class="half-size-column fl">
						
							<?=form_open_multipart('admin/editSetting') ?>
							
								<fieldset>
									<input type="hidden" name="id" value="<?=$settings['id'] ?>">
									<p>
										<label for="simple-input">Công ty/cửa hàng</label>
										<input type="text" id="full-width-input" name="company" value="<?=$settings['company'] ?>" class="round full-width-input" />
									</p>
									
									<p>
										<label for="textarea">Mô tả</label>
										<input type="text" id="full-width-input" name="href" value="<?=$settings['description'] ?>" class="round full-width-input" />
									</p>
									
									<p>
										<label for="simple-input">Logo</label>
										<input type="file" name="image" size="20"/>										
									</p>
									<p>
										<?php 	
											if(isset($settings['logo']) && !empty($settings['logo']))
											{
												echo '<image src="'. base_url('upload/image/settings/'.$settings['logo']) .'">';
											}
										?>
									</p>

									<p>
										<label for="textarea">Địa chỉ website</label>
										<input type="text" id="full-width-input" name="website" value="<?=$settings['website'] ?>" class="round full-width-input" />
									</p>

									<p>
										<label for="textarea">Địa chỉ</label>
										<input type="text" id="full-width-input" name="address" value="<?=$settings['address'] ?>" class="round full-width-input" />
									</p>

									<p>
										<label for="textarea">Số điện thoại</label>
										<input type="text" id="full-width-input" name="contact" value="<?=$settings['contact'] ?>" class="round full-width-input" />
									</p>	

									<p>
										<label for="textarea">E-mail</label>
										<input type="text" id="full-width-input" name="email" value="<?=$settings['email'] ?>" class="round full-width-input" />
									</p>																			
									
									<div class="stripe-separator"><!--  --></div>
	
									<input type="submit" name="submitBtn" value="Chỉnh sửa" class="round blue ic-right-arrow" />
									
								</fieldset>
							
							</form>
						
						</div> <!-- end half-size-column -->									
				
					</div> <!-- end content-module-main -->
					
				</div> <!-- end content-module -->								
		
			</div> <!-- end side-content -->
		
		</div> <!-- end full-width -->
			
	</div> <!-- end content -->